package com.project.myBeans;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * Created by TAO on 2016/1/16.
 */
@Component //必须加上，才能自动注入
public class ConfigParameters { //配置参数类


    @Value("#{configProperties['alidayuServer']}")
    private  String alidayuServer;  //阿里大鱼服务器IP

    @Value("#{configProperties['appkey']}")
    private  String appkey;  //阿里大鱼appkey

    @Value("#{configProperties['secret']}")
    private  String secret;  //阿里大鱼secret

    @Value("#{configProperties['emailHost']}")
    private  String emailHost;  //smtp服务器

    @Value("#{configProperties['emailUserName']}")
    private  String emailUserName;  //smtp用户名

    @Value("#{configProperties['emailPassword']}")
    private  String emailPassword;  //smtp密码

    @Value("#{configProperties['appTokenValidTime']}")
    private int appTokenValidTime; //appToken有效时时

    @Value("#{configProperties['jwtAppTokenSecret']}")
    private String jwtAppTokenSecret; //app token密钥

    @Value("#{configProperties['bdGeoServer']}")
    private String bdGeoServer;

    @Value("#{configProperties['bdAk']}")
    private String bdAk;

    public String getBdGeoServer() {
        return bdGeoServer;
    }

    public void setBdGeoServer(String bdGeoServer) {
        this.bdGeoServer = bdGeoServer;
    }

    public String getBdAk() {
        return bdAk;
    }

    public void setBdAk(String bdAk) {
        this.bdAk = bdAk;
    }

    public String getJwtAppTokenSecret() {
        return jwtAppTokenSecret;
    }

    public void setJwtAppTokenSecret(String jwtAppTokenSecret) {
        this.jwtAppTokenSecret = jwtAppTokenSecret;
    }

    public int getAppTokenValidTime() {
        return appTokenValidTime;
    }

    public void setAppTokenValidTime(int appTokenValidTime) {
        this.appTokenValidTime = appTokenValidTime;
    }

    public String getAlidayuServer() {
        return alidayuServer;
    }

    public void setAlidayuServer(String alidayuServer) {
        this.alidayuServer = alidayuServer;
    }

    public String getAppkey() {
        return appkey;
    }

    public void setAppkey(String appkey) {
        this.appkey = appkey;
    }

    public String getSecret() {
        return secret;
    }

    public void setSecret(String secret) {
        this.secret = secret;
    }

    public String getEmailHost() {
        return emailHost;
    }

    public void setEmailHost(String emailHost) {
        this.emailHost = emailHost;
    }

    public String getEmailUserName() {
        return emailUserName;
    }

    public void setEmailUserName(String emailUserName) {
        this.emailUserName = emailUserName;
    }

    public String getEmailPassword() {
        return emailPassword;
    }

    public void setEmailPassword(String emailPassword) {
        this.emailPassword = emailPassword;
    }

}
